﻿using System.Collections.Generic;
using System.Collections;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
using System;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.Xml.Schema;

namespace ScormModel
{
    [Serializable()]
    public class ConstrainedChoiceConsiderations
    {
        private string _preventActivation;
        private string _constrainChoice;
         [NonSerialized]
        private XmlNode _constrainedChoiceConsiderationsContent;
        [XmlAttribute("preventActivation")]
        public string PreventActivation
        {
            get { return this._preventActivation; }
            set { this._preventActivation = value; }
        }
        [XmlAttribute("constrainChoice")]
        public string ConstrainChoice
        {
            get { return this._constrainChoice; }
            set { this._constrainChoice = value; }
        }
        
        [XmlIgnoreAttribute]
        public XmlNode ConstrainedChoiceConsiderationsContent
        {
            get { return this._constrainedChoiceConsiderationsContent; }
            set { this._constrainedChoiceConsiderationsContent = value; }
        }
        public void buildConstrainedChoiceConsiderations()
        {
            XmlAttributeCollection attList = _constrainedChoiceConsiderationsContent.Attributes;
            if (attList.GetNamedItem("preventActivation") != null)
            {
                _preventActivation = ((XmlAttribute)attList.GetNamedItem("preventActivation")).Value;
            }
            if (attList.GetNamedItem("constrainChoice") != null)
            {
                _constrainChoice = ((XmlAttribute)attList.GetNamedItem("constrainChoice")).Value;
            }
        }
        //194074785874
    }
}
